package com.mall.xiaomi.mapper;

import com.mall.xiaomi.pojo.ShoppingCart;
import org.apache.ibatis.annotations.Delete;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author zhanghui
 * @ClassName ShoppingCartMapper
 * @Description TODO
 * @Date 2021/2/25 19:46
 * @Version 1.0
 **/
public interface ShoppingCartMapper extends Mapper<ShoppingCart> {
    @Delete("delete from shopping_cart where user_id = #{userId}")
    public int deleteCart(Integer userId);
}
